// /*
// Light sleep: 
// Record the current temperature and humidity collection values after waking up,
// and create an array with 20 elements for the temperature and humidity.
// Each time you wake up, record the current values. After recording the specified number of values, 
// calculate the average value, the maximum value, the minimum value, and the last value.
// After the calculation, create a semaphore, wait for the end of deep sleep, 
// and then report the data to the cloud platform.
// After the semaphore is released, delete the data in the array and start counting again.
// The data is stored in the RTC memory.
//  */
// #ifndef SLEEP_H
// #define SLEEP_H
// #include <stdio.h>
// #include <string.h>
// #include <stdlib.h>
// #include <time.h>
// #include <sys/time.h>
// #include "freertos/FreeRTOS.h"
// #include "freertos/task.h"
// #include "esp_sleep.h"
// #include "esp_log.h"
// #include "esp_timer.h"

// #include "SHT40.h"
// #include "freertos/FreeRTOS.h"
// #include "freertos/task.h"
// #include "deep_sleep.h"
// void light_sleep();

// SemaphoreHandle_t get_light_sleep_connect_sem();
// void SendToAliot(float avg_temp, float avg_humi, float MaxTemp, float MinTemp, float MaxHumi, float MinHumi, float latest_temp, float latest_humi);
// #endif
// /*
// Light sleep: 
// Record the current temperature and humidity collection values after waking up,
// and create an array with 20 elements for the temperature and humidity.
// Each time you wake up, record the current values. After recording the specified number of values, 
// calculate the average value, the maximum value, the minimum value, and the last value.
// After the calculation, create a semaphore, wait for the end of deep sleep, 
// and then report the data to the cloud platform.
// After the semaphore is released, delete the data in the array and start counting again.
// The data is stored in the RTC memory.
//  */
// #ifndef SLEEP_H
// #define SLEEP_H
// #include <stdio.h>
// #include <string.h>
// #include <stdlib.h>
// #include <time.h>
// #include <sys/time.h>
// #include "freertos/FreeRTOS.h"
// #include "freertos/task.h"
// #include "esp_sleep.h"
// #include "esp_log.h"
// #include "esp_timer.h"

// #include "SHT40.h"
// #include "freertos/FreeRTOS.h"
// #include "freertos/task.h"
// #include "deep_sleep.h"
// void light_sleep();

// SemaphoreHandle_t get_light_sleep_connect_sem();
// void SendToAliot(float avg_temp, float avg_humi, float MaxTemp, float MinTemp, float MaxHumi, float MinHumi, float latest_temp, float latest_humi);
// #endif